package db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class ArticleDbOpenHelper extends SQLiteOpenHelper {

	public ArticleDbOpenHelper(Context context) {
		super(context, "article.db", null, 2);
	}
	@Override
	public void onCreate(SQLiteDatabase db) {
		
		db.execSQL(
				"create table article("
				+ "id integer primary key autoincrement,"
				+ "title TEXT, "
				+ "type TEXT,"
				+ "provider TEXT,"
				+ "date TEXT);"
				);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
